Skip to content

Update Jetty to 12.1.15 and take log4j 2.26.1 from Orbit - #307

Open
tortmayr wants to merge 1 commit into
masterfrom
update-dependencies-for-2.9.0
Open

tortmayr wants to merge 1 commit into
masterfrom
update-dependencies-for-2.9.0

Conversation

@tortmayr

@tortmayr tortmayr commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

What it does

Dependency pass ahead of the 2.9.0 release. The 2023-12 minimum baseline stays: Jetty and log4j come from dedicated Orbit repositories, not from the release train.

  • Take Jetty 12.1.15 from Orbit in all targets and the category repository reference. It fixes the WebSocket and HTTP advisories of 12.1.4 and only needs Java 17. The manifest and Maven floors stay at 12.1.4, so consumers can still bring their own Jetty
  • Replace the r2025-12 default target with r2026-09 and admit LSP4J 1.0.0 and Gson 2.14.0 as shipped by the train
  • Take log4j api, core and slf4j2-impl 2.26.1 from Orbit 2026-09 instead of wrapping the Maven artifacts (maven-dependencies.tpd is gone). r2023-12 takes them from the Orbit maven-osgi repository, as its own Orbit lacks log4j-core and the full 2026-09 Orbit would feed newer Lucene (which needs jdk.incubator.vector) into the 2023-12 planner pool
  • Stop shipping log4j-to-slf4j and log4j-1.2-api in the p2 repository; nothing uses them. Since 2.25, log4j-to-slf4j exports org.apache.logging.slf4j with a higher version than log4j-slf4j2-impl, so the websocket bundle's package import wired the reverse bridge and log4j-core failed to initialize. The websocket bundle now requires org.apache.logging.log4j.slf4j2.impl by name
  • Raise the Maven log4j range cap to 2.26.1; the 2.19.0 floor stays

Also:

  • Align CONTRIBUTING.md with glsp-core, including the human-in-the-loop rule for AI-assisted contributions

How to test

mvn clean verify -Dp2.target=r2023-12
mvn clean verify
mvn clean verify -Pm2 -Pfatjar

Then start the workflow example server from the IDE (Start_Workflow_Example_Server.launch) and check that it logs through log4j without No SLF4J providers or Unable to initialize Log4j errors.

  • p2 build passes against r2023-12 and r2026-09; the repository contains only the Orbit log4j api/core/slf4j2-impl 2.26.1 bundles (verified locally)
  • The workflow fatjar contains no log4j-to-slf4j and starts with working logging (verified locally)
  • glsp-eclipse-integration builds and runs against the locally built p2 repository (verified locally)

Follow-ups

  • glsp-eclipse-integration gets a matching PR (same targets, explicit slf4j bridge, and activating the logging bundles early so log4j and SLF4J find their providers in OSGi)
  • log4j patches now arrive with Orbit releases; for an urgent CVE we may need to wrap the Maven artifact again temporarily

Changelog

  • This PR should be mentioned in the changelog
  • This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)

The p2 repository no longer contains org.apache.logging.log4j.to.slf4j and org.apache.logging.log4j.1.2.api; consumers that relied on them need to take them from Orbit.

- Take Jetty 12.1.15 from Orbit in all targets and the category
  repository reference. It fixes the WebSocket and HTTP advisories of
  12.1.4 and only needs Java 17, so the 2023-12 minimum baseline stays;
  the manifest and Maven floors stay at 12.1.4
- Replace the r2025-12 default target with r2026-09 and admit LSP4J
  1.0.0 and Gson 2.14.0 as shipped by the train
- Take log4j api, core and slf4j2-impl 2.26.1 from Orbit 2026-09
  instead of wrapping the Maven artifacts. r2023-12 takes them from the
  Orbit maven-osgi repo, as its own Orbit lacks log4j-core and the full
  2026-09 Orbit would feed newer Lucene into the 2023-12 planner pool
- Stop shipping log4j-to-slf4j and log4j-1.2-api, which nothing uses.
  Since 2.25 log4j-to-slf4j exports org.apache.logging.slf4j with a
  higher version than slf4j2-impl, so the websocket import wired the
  reverse bridge and log4j-core could not initialize. The websocket
  bundle now requires the slf4j2-impl bundle by name instead
- Raise the Maven log4j range cap to 2.26.1; the 2.19.0 floor stays so
  that consumers pinning an older log4j still resolve

Also:
- Align CONTRIBUTING.md with glsp-core, including the human-in-the-loop
  rule for AI-assisted contributions
@tortmayr
tortmayr force-pushed the update-dependencies-for-2.9.0 branch from 68127c2 to 9225905 Compare December 4, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant